﻿Imports System.Data.SqlTypes
Imports System.Xml
Imports System.Xml.Serialization
Imports System.ComponentModel

<Serializable()> _
<XmlRootAttribute("NivelUsuario", Namespace:="", IsNullable:=False)> _
Public Class NivelUsuarioInfo

    Public Sub New()

    End Sub



    Private _id As Integer
    <XmlElement("Id")> _
    Public Property id() As Integer
        Get
            Return _id
        End Get
        Set(ByVal value As Integer)

            _id = value
        End Set
    End Property





    Private _nivel As String
    <XmlElement("Nivel")> _
    Public Property nivel() As String
        Get
            Return _nivel
        End Get
        Set(ByVal value As String)
            _nivel = value
        End Set
    End Property

    Private _dt_cadastro As Nullable(Of DateTime)
    <XmlElement("DataCadastro")> _
    Public Property dt_cadastro() As Nullable(Of DateTime)
        Get
            Return _dt_cadastro
        End Get
        Set(ByVal value As Nullable(Of DateTime))
            If value Is Nothing Then
                value = SqlDateTime.MinValue
            Else
                _dt_cadastro = value
            End If
        End Set
    End Property
    <XmlIgnore()> _
    Public ReadOnly Property dt_cadastroSpecified() As Boolean
        Get
            Return (dt_cadastro IsNot Nothing And dt_cadastro.HasValue)
        End Get
    End Property


    Private idusuario_ As Integer
    <XmlElement("Idusuario")> _
    Public Property idusuario() As Integer
        Get
            Return idusuario_
        End Get
        Set(ByVal value As Integer)
            idusuario_ = value
        End Set
    End Property









    Private _dtinicio As Nullable(Of DateTime)
    <XmlElement("Datainicio")> _
    Public Property dtinicio() As Nullable(Of DateTime)
        Get
            Return _dtinicio
        End Get
        Set(ByVal value As Nullable(Of DateTime))
            If value Is Nothing Then
                value = SqlDateTime.MinValue
            Else
                _dtinicio = value
            End If
        End Set
    End Property
    <XmlIgnore()> _
    Public ReadOnly Property dtinicioSpecified() As Boolean
        Get
            Return (dtinicio IsNot Nothing And dtinicio.HasValue)
        End Get
    End Property




    Private _dt_fim As Nullable(Of DateTime)
    <XmlElement("DataFim")> _
    Public Property dt_fim() As Nullable(Of DateTime)
        Get
            Return _dt_fim
        End Get
        Set(ByVal value As Nullable(Of DateTime))
            If value Is Nothing Then
                value = SqlDateTime.MinValue
            Else

                _dt_fim = value
            End If

        End Set
    End Property

    <XmlIgnore()> _
    Public ReadOnly Property dt_fimSpecified() As Boolean
        Get
            Return (dt_fim IsNot Nothing And dt_fim.HasValue)
        End Get
    End Property



    Private _tipocomando As String
    <XmlElement("Tipocomando")> _
    Public Property tipocomando() As String
        Get
            Return _tipocomando
        End Get
        Set(ByVal value As String)
            _tipocomando = value
        End Set
    End Property

    <XmlArray("Menus")> _
    <XmlArrayItem("Menu")> _
    Private _menus As New List(Of Menu)
    Public Property menus() As List(Of Menu)
        Get
            Return _menus
        End Get
        Set(ByVal value As List(Of Menu))
            _menus = value
        End Set
    End Property





End Class
